package com.avengers.mobile.testing;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;




import com.avengers.mobile.layer.rest.ProductoRest;


@Transactional
public class ProductoTesting extends AbstractBaseUnitTest {

	
	
	@Autowired
	ProductoRest restProducto;

	@Test
	public void test() {		
		testingRestfindProductoList();	
		testingRestClientefindProducto();
		
	}
	
	
	public void testingRestfindProductoList(){
		
		try {		
			System.out.println(restProducto.findProductoList().getEntity());		
			} catch (Exception e) {			
				e.printStackTrace();
			}
	}
	
	public void testingRestClientefindProducto(){
		
		try {		
			System.out.println(restProducto.find(2).getEntity());		
			} catch (Exception e) {			
				e.printStackTrace();
			}
	}

}
